package com.shop.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.user.model.User;
import com.shop.user.model.search.UserSearchBean;

import java.util.List;

public interface UserService {
    Page<User> findAll(Page<User> page, UserSearchBean bsb);
    boolean save(User user);
    int update(User user);
    int deleteByIds(List<Integer> ids);
    int deleteById(Integer id);

    User findById(Integer id);

    boolean updateEnabled(User user);
    boolean updateLocked(User user);

    int add(User user);

    User findByInput(String username);

    int assignUser(User user);

}
